Twine\forms\base\FormSection D

Total Complexity 182
Dependencies 10
Dependents 13
Total lines 1,540
Lines of code 691
Logical lines of code 297
Comment lines 633
Methods 66
Properties 10

Methods 66

Method Rating Maintainability Complexity Lines of code
__construct()
A
48 9 36
inputValuesList()
S
54 7 22
isValid()
S
53 6 25
submittedValues()
S
53 6 23
populateDefaults()
S
59 6 15
formDataPresentIn()
S
59 6 15
hasSubsection()
S
59 6 15
addSubsections()
S
51 5 29
getCachedRequest()
S
54 5 25
getAllValidationErrorsString()
S
54 5 21
findSection()
S
60 5 14
constructFinalize()
S
52 4 28
inputsInSubsections()
S
61 5 12
findSectionFromPath()
S
56 4 19
receiveFormSubmission()
S
59 4 16
enqueueJs()
S
58 4 15
normalize()
S
59 4 14
getValidationErrorsAccumulated()
S
60 4 14
merge()
S
61 4 12
validData()
S
62 4 11
getInput()
S
56 3 20
wpEnqueueScripts()
S
50 2 32
subsectionValidationErrorsByHtmlName()
S
64 4 10
localizeValidationRules()
S
62 3 11
getProperSubsection()
S
57 2 19
validate()
S
64 3 9
inputs()
S
65 3 9
getValidatableSubsections()
S
65 3 9
subforms()
S
65 3 9
getSubsection()
S
70 3 6
cleanSensitiveData()
S
74 2 5
addSubsection()
S
70 2 6
setSubmissionErrorMessage()
S
73 2 5
hide()
S
71 2 6
exclude()
S
73 2 5
htmlNamePrefix()
S
70 2 6
ensureConstructFinalizedCalled()
S
73 2 5
setSubmissionSuccessMessage()
S
72 2 5
getJqueryValdationRules()
S
65 2 10
subsections()
S
72 2 6
ensureScriptsLocalized()
S
75 2 5
subsectionExists()
S
78 2 3
setDefaultNameIfEmpty()
S
68 2 7
getOtherJsData()
S
71 2 6
localizeScriptForAllForms()
S
62 1 12
enqueueAndLocalizeFormJs()
S
62 1 12
jsLocalization()
S
80 1 3
inputPrettyValues()
S
79 1 3
getLayoutStrategy()
S
82 1 3
getHtmlForInput()
S
80 1 3
wasSubmitted()
S
80 1 3
inputValues()
S
79 1 3
getInputValue()
S
76 1 4
parentSection()
S
77 1 4
name()
S
77 1 4
submissionSuccessMessage()
S
82 1 3
getLocalizedErrorMessages()
S
66 1 9
getHtmlAndJs()
S
77 1 4
submissionErrorMessage()
S
82 1 3
getHtml()
S
77 1 4
hasSubsections()
S
80 1 3
htmlClass()
S
80 1 3
removeSubsection()
S
80 1 3
resetJsLocalization()
S
80 1 3
hasHeceivedSubmission()
S
77 1 4
useNonce()
S
82 1 3